package com.yisu.auction.api.core.mapper;

import com.yisu.auction.ewf.entity.BalanceLog;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

public interface BalanceLogMapper {
    int deleteByPrimaryKey(Long id);

    int insert(BalanceLog record);

    int insertSelective(BalanceLog record);

    BalanceLog selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BalanceLog record);

    int updateByPrimaryKey(BalanceLog record);

    /**
     * author: 赵杰
     * Business Description：通过prizeId获取返现金额
     * @param prizeId
     * @return
     */
    BigDecimal getReturnMoneyByPrizeId(@Param("prizeId") long prizeId);
}